﻿@model visu.role
@{
    ViewBag.Title = "Menu";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="mod_side">
    <h1 class="logo"><a href="#"></a></h1>
    <div class="mod_list">
        <ul>
            @{
    if (Model.IS_Company == true)
    {
        <li class="on" data-tab="false" data-name="info_CompanyManger_query">
            <a href="/Company/CompanyRelationListInfo" target="rightFrame" data-seq="1">
                <i class="ico ico_customer"></i>客户
            </a>
        </li>
    }
    if (Model.IS_Monitor == true)
    {
        if (Model.IS_Company == false)
        {
            <li class="on" data-tab="on" data-name="info_MonitorManger_query">
                <a href="/Monitor/MonitorListInfo" target="rightFrame" data-seq="2">
                    <i class="ico ico_check"></i>监控
                </a>
            </li>
        }
        else
        {
        <li data-tab="false" data-name="info_MonitorManger_query">
            <a href="/Monitor/MonitorListInfo" target="rightFrame" data-seq="2">
                <i class="ico ico_check"></i>监控
            </a>
        </li>
        }
    }
    if (Model.IS_Report == true)
    {
        <li data-tab="false" data-name="info_ReportManage_query">
            <a href="/Report/MaterialIn" target="rightFrame" data-seq="3">
                <i class="ico ico_form"></i>报表
            </a>
        </li>
    }
    if (Model.IS_Resource == true)
    {
        <li data-tab="false" data-name="order_ResourceManage_query">
            <a href="/Resource/OnTimeInventory" target="rightFrame" data-seq="4">
                <i class="ico ico_resource"></i>资源
            </a>
        </li>
    }
    if (Model.IS_Message == true)
    {
        <li data-tab="false" data-name="order_MessageManage_query">
            <a href="/Message/MaterialSafetyStockAlert" target="rightFrame" data-seq="5">
                <i class="ico ico_order"></i>消息
            </a>
        </li>
    }
    if (Model.IS_Setting == true)
    {
        <li data-tab="false" data-name="system_SettingManage_query">
            <a href="/Setting/CompanyInfo" target="rightFrame" data-seq="6">
                <i class="ico ico_set"></i>设置
            </a>
        </li>
    }

}
        </ul>
    </div>
</div>
<script>
    $(function () {
        $("li a").click(function () {
            $(this).parent().addClass("on").siblings().removeClass("on");
        });
    })
</script>